package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 库存商品实体类
 */
@Data
@ApiModel(value = "库存商品实体")
@TableName("t_product")
public class ProductBean {
    /**商品编号*/
    @ApiModelProperty(value = "商品编号")
    @TableId(value = "pk_productId")
    private String productId;
    /**商品名称*/
    @ApiModelProperty(value = "商品名称")
    @TableField("p_name")
    private String name;
    /**品牌*/
    @ApiModelProperty(value = "品牌")
    @TableField("p_brand")
    private String brand;
    /**类别*/
    @ApiModelProperty(value = "类别")
    @TableField("p_type")
    private String type;
    /**图片路径*/
    @ApiModelProperty(value = "图片路径")
    @TableField("p_imgPath")
    private String imgPath;
    /**库存数量*/
    @ApiModelProperty(value = "库存数量")
    @TableField("p_num")
    private Integer num;
    /**最新采购价*/
    @ApiModelProperty(value = "最新采购价")
    @TableField("p_newInPrice")
    private Integer newInPrice;
    /**建议销售价*/
    @ApiModelProperty(value = "建议销售价")
    @TableField("p_outPrice")
    private Integer outPrice;

    public ProductBean() {
    }

    public ProductBean(String productId, String name, String brand, String type, String imgPath) {
        this.productId = productId;
        this.name = name;
        this.brand = brand;
        this.type = type;
        this.imgPath = imgPath;
    }

    public ProductBean(String productId, String name, String brand, String type, String imgPath, Integer num, Integer newInPrice, Integer outPrice) {
        this.productId = productId;
        this.name = name;
        this.brand = brand;
        this.type = type;
        this.imgPath = imgPath;
        this.num = num;
        this.newInPrice = newInPrice;
        this.outPrice = outPrice;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getNewInPrice() {
        return newInPrice;
    }

    public void setNewInPrice(Integer newInPrice) {
        this.newInPrice = newInPrice;
    }

    public Integer getOutPrice() {
        return outPrice;
    }

    public void setOutPrice(Integer outPrice) {
        this.outPrice = outPrice;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "productId='" + productId + '\'' +
                ", name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", type='" + type + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", num=" + num +
                ", newInPrice=" + newInPrice +
                ", outPrice=" + outPrice +
                "}\n";
    }
}
